Skip to content

fix: point Tauri viewer at HTTP server URL instead of fastled:// protocol - #152

Closed
zackees wants to merge 1 commit into
mainfrom
fix/instant-launch-viewer-url
Closed

zackees wants to merge 1 commit into
mainfrom
fix/instant-launch-viewer-url

Conversation

@zackees

@zackees zackees commented Jun 11, 2026

Copy link
Copy Markdown
Member

Closes #151

Summary

  • The instant-launch viewer loaded fastled://localhost/index.html via a custom protocol serving raw files from the artifact directory. On a cold compile index.html doesn't exist yet, so the viewer showed a static "Not Found" page with no JS and never recovered — even after the build succeeded.
  • Fix: remove the fastled:// custom protocol entirely and point the viewer (--internal-viewer-url) at the embedded HTTP server, which already serves the loading page with SSE build streaming and auto-reloads into the sketch when the build finishes.
  • Net: 4 files, +53/−91.

Test plan

  • soldr cargo test --workspace — 131 tests pass
  • bash lint — fmt and clippy clean (dylint step fails identically on main: pre-existing dylint_driver v5.0.0 build break against nightly-2026-03-26, unrelated to this change)
  • E2E with a pristine sketch (deleted fastled_js/ + .build/ to force a full cold compile): viewer spawned with --internal-viewer-url http://127.0.0.1:<port>, showed the loading page with spinner + live compile log mid-build, then auto-transitioned to the rendered sketch UI in the same session — no restart needed

🤖 Generated with Claude Code

…ctory protocol

The instant-launch viewer was loading fastled://localhost/index.html via a
custom protocol that served raw files from the artifact directory. On a cold
compile index.html does not exist yet, so the viewer rendered a static
"Not Found" page with no JavaScript and never recovered, even after the
build succeeded.

Replace the custom protocol with an external WebviewUrl pointing at the
embedded HTTP server, which already serves the loading page with SSE build
streaming and auto-reloads into the sketch when the build completes.

Closes #151

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@zackees

zackees commented Jun 11, 2026

Copy link
Copy Markdown
Member Author

Superseded by #157, which lands the same viewer→HTTP-server change rebased on current main (after #154's live log streaming). Merged there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: instant launch broken — Tauri viewer loads fastled:// directory protocol, never the HTTP server, shows 'Not Found' forever

1 participant